
#include "connection.h"

namespace ProjectZ { namespace NCommand { namespace NConnection {


void CS_RECONNECT::OnExecute(User * pUser, ::Network::Packet * pPacket)
{
	PREPARE_PACKET;

	uint8_t type = 0;
	uint32_t old_gid = 0;
	uint16_t server_id = 0;
	uint16_t channel_id = 0;

	* pPacket >> type >> old_gid >> server_id >> channel_id;

	pUser->OnReconnect();

	::Network::Packet * pAck = ::Network::GETPACKETPOOL()->SEND_NEW();

	* pAck << static_cast<int16_t>(ACK_OK);
	pAck->MakePacket(CMD_SC_RECONNECT);
	pUser->Send(pAck);
}


} /*NWorld*/ } /*NCommand*/ } /*ProjectZ*/


